package com.hejjon.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hejjon.core.domain.entity.RecordRelTableInfo;
import com.hejjon.core.domain.vo.RecordRelTableInfoVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RecordRelTableInfoMapper extends BaseMapper<RecordRelTableInfo> {


    int batchUpdateDatabase(@Param("infoList") List<RecordRelTableInfo> infoList);


    int batchInsert(@Param("infoList") List<RecordRelTableInfo> infoList);


    int batchUpdate(@Param("infoList") List<RecordRelTableInfo> infoList);

    /**
     * 查询特征 多个特征名称和显示名称以逗号分割
     */
    List<RecordRelTableInfoVO> selectByRecordIds(@Param("recordIds") List<String> recordIds);


    /**
     * 查询特征信息
     */
    List<RecordRelTableInfoVO> selectByRecordId(@Param("recordId") String recordId);

    /**
     * 根据发布记录和业务特征ID查询 单个
     */
    RecordRelTableInfoVO selectByRecordIdAndFeatureId(@Param("recordId") String recordId, @Param("featureId") String featureId);

}
